* {
    padding: 0;
    margin: 0;
}

/* 页面中所有a清除下划线 */
a {
    text-decoration: none;
}

html,
body {
    width: 100%;
    height: 100%;
}

.mian {
    height: 100%;
    display: flex;
    flex-direction: column;
}

// 餐厅名
.header {
    width: 100%;
    position: fixed;
    top: 0rem;
    height: 0.4rem;
    padding-left: 0.15rem;
    background: rgb(246, 240, 227);
    z-index: 999;
}

p {
    width: 1.5rem;
    margin-left: 0.15rem;
    height: 0.4rem;
    line-height: 0.4rem;
    overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;

}

.product-list {
    height: 100%;
    padding: 0rem 0.15rem;
    flex: 1;
   table{
       width: 100%;
  .item {
        height: 1rem;
        display: flex;
        border-bottom: 0.01rem solid rgb(189, 182, 182);
        position: relative;
        .xuan {
            width: 0.2rem;
            height: 0.2rem;
            margin-top: 0.4rem;

        }
            img {
                width: 0.8rem;
                height: 0.8rem;
                margin-left: 0.2rem;
                
                margin-top: 0.1rem;
            }

            span {
                display: inline-block;
                margin-top: 0.2rem;
                color: red;
                margin-left: 0.15rem;

            }

            .item-i {
                position: absolute;
                right: 0.2rem;
                bottom: 0.1rem;

                input[name="minus"],
                input[name="plus"] {
                    width: 0.3rem;

                }

                input[name="amount"] {
                    width: 0.3rem;
                    text-align: center;
                }
            }
            a{
                cursor: pointer;
                text-align: center;
                margin-left: 0.7rem;
                display: inline-block;
                width: 0.6rem;
                height: 0.2rem;
                border-radius: 0.1rem;
                margin-top: 0.1rem;
                background: #e4b92b;
                font-size: 0.16rem;
            }
        }
    }
   }
    



.price {
    
margin-left: 0.15rem;
    width: 94%;
    height: 0.5rem;
    align-items: center;
    display: flex;
    justify-content: space-around;
    border-top: 0.01rem solid rgb(189, 182, 182);
    position: fixed;
    bottom: 0.6rem;
    z-index: 999;
    background: #fff;

    .quan {
        width: 0.2rem;
        height: 0.2rem;
    }

    p {
        font-size: 0.14rem;
        margin-left: 1rem;
     

        .total-price {
            color: red;
            font-size: 0.24rem;

        }
    }
    .sp{
        display: inline-block;
        width: 0.8rem;
        height: 0.4rem;
        background: #e02e24;
        color: #fff;
        text-align: center;
        line-height: 0.4rem;
        border-radius: 0.05rem;
        margin-left: 0.2rem;
    }
}

footer {
    width: 100%;
    height: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    background-color: white;
    border-top: 3px dashed rgb(235, 152, 152);

    div {
        width: 0.8rem;
        height: 0.4rem;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
         &:hover{
            color: #e02e24;
         }

        span  {
            font-size: 0.2rem;
            color: #666666;
        }
    }
}
.active {
    background-color: red;
}
